<template>
	<view class="content">
		<view class="icon" @tap="toPage()">
			<text class="cuIcon-add"></text>
		</view>
	</view>
</template>

<script>
	export default {
		name: "Icon",
		props:{
			url:{
				type: String,
				default(){
					return ""
				}
			}
		},
		data(){
			return{
				
			}
		},
		methods:{
			toPage(){
				uni.navigateTo({
					url: this.url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		position: fixed;
		right: 80rpx;
		bottom: 100rpx;
		.icon{
			background-color: #ffa23e;
			color: #FFFFFF;
			font-size: 68rpx;
			padding: 15rpx 20rpx;
			border-radius: 50%;
			box-shadow: 4rpx 4rpx 8rpx #AAAAAA;
		}
	}
</style>
